Skip to main content

Autocomplete

Autocomplete: Get autocomplete data by providing place name and area.

import { setConfig, autocomplete} from "barikoiapis";
autocomplete({ q: "barikoi", area: "mirpur" })
.then((response) => {
console.log(response);
})
.catch((err) => {
console.log(err);
});
Barikoi Autocomplete initially returns:

id, longitude, latitude, address, area, city, postCode, pType, uCode.

Optional Parameters:

You can customize the autocomplete request by including additional optional parameters. Here's an example of how to use optional parameters:

bangla (Optional): Specify bangla to true for getting the additional bangla response. Example:

import { setConfig, autocomplete} from "barikoiapis";
autocomplete({ q: "barikoi", area: "mirpur", bangla:"true" })
.then((response) => {
console.log(response);
})
.catch((err) => {
console.log(err);
});
Check other optional parameters for autocomplete